<style>
/* 重写样式 */
.fui-header.block {
    display: block;
}

.fui-tab {
    margin: 0;
}

.fui-tab a {
    height: 2.2rem;
    line-height: 2.2rem;
}

.fui-tab:after {
    display: none;
}
.nickname {
    color: #50b6fe;
}
    .shop-index-page .menu {height: auto; background: #fff;}
    .shop-index-page .menu .item {height: auto; width: 1%; padding: 0.5rem 0; margin: 0; font-size: 0.7rem; color: #636363; text-align: center; display: table-cell;position: relative;}
    .shop-index-page .menu .item:after  {font-size: 0.7rem;position: absolute;content: '';left:-1px;top:0.5rem;bottom:0.5rem;border-left:1px solid #d9d9d9;}
    .content-empty{padding:1rem 0;margin:0;}
source{
    min-width: 100%;
    min-height: 100%;
    height: auto;
    width: auto;
}
</style>
<style>
	.btn{border-radius: 100%;border: 0 solid #ebebeb;margin: 0.25rem;}
	.btn-logo.active{border: 2px solid #3263fe;}
	.btn-logo {
			padding:0px;
			height:2rem;
			width:2rem;
			border-radius: 100%;
			border: 2px solid #ebebeb;
	}
	.label-gray{
		background-color:#f2f2f2;
		color:#333;
		border-radius:1rem;
		padding:0.3rem;
		font-size:0.7rem
	}
	.label-gray.active{
		background-color:#e8fcf8;
		color:#18bc9c;
	}
</style>
<div class='fui-page fui-page-current'>
	<div ng-include="sys_html('common/_header')"></div>
	<div class="fui-content">
	<div class="jy-topbg" style="top:0;">
	<div class="jy-content">
	<div class="radius" style="padding-bottom:1rem;padding-top: 0.5rem;">
	<div class="fui-cell-group radius">
		<div class="fui-cell">
			<div class="fui-cell-label bold">名称</div>
			<div class="fui-cell-info"><input type="text" class='fui-input' placeholder="设置名称" ng-model="pagedata.post.title"/></div>
		</div>
	</div>
	<div class="fui-cell-group radius">
		<div class="fui-cell">
			<div class="fui-cell-info">
				<div class="bold" style="padding-bottom: 0.3rem;">MCP接入点</div>
				<textarea style="height: 6rem" id="desc" ng-model="pagedata.post.mcpurl" placeholder="请输入MCP接入点"></textarea>
			</div>
		</div>
	</div>
	<div class="fui-cellone" style="padding-top: 0;margin-top:1rem">
			<div wx:if="{{pagedata.post.status==1}}" class="fui-cellone-text" style="padding-right:0.5rem">
				<div class="radius c jy-btn1" ng-click="access_json('/index/')" style="border-radius:1rem;color:red;padding:0.7rem">
					关闭
				</div>
			</div>	
			<div class="fui-cellone-text">
				<div class="radius c jy-btn2" ng-click="pagedata.postmcp()" style="border-radius:1rem;color:#fff;padding:0.7rem">
					保存
				</div>
			</div>
	</div>
	</div>
	</div>
	</div>
	<div ng-include="sys_html('common/_copyright',true)"></div>
</div>
</div>
<div ng-include="sys_html('common/_footer')"></div>
<script>
scope.pagedata.postmcp=function(){
	scope.post_json('/editmcp/post/',scope.pagedata.post,function(id){
		if(scope.pagedata.post.mcpurl){
			scope.get_data(scope.pagedata,'upmcpinfo','/mcpitem/upmcp/id='+id);
		}
		scope.message('操作成功！','','/mcpitem//id='+id);
	});
}
</script>